@import '~@/assets/css/mixins';

.box_log {
  position: relative;
  font-size: 12px;

  :global {
    .react-resizable-handle {
      position: absolute;
      top: 0;
      right: 0;
      z-index: 9999;
      width: 100%;
      height: 10px;
      cursor: row-resize;
    }

    // .BaseTable__header {
    //   width: auto !important;
    //   >div {
    //     width: auto !important;
    //   }
    // }
    // .BaseTable__body {
    //   overflow: visible !important;
    // }
  }

  .cell_cont {
    padding: 0 5px;
    box-sizing: border-box;
    .text_overflow_single();
  }
}

.editor_logger {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 100%;
}

.logger_box {
  width: 100%;
  height: 100%;
  background-color: rgb(255 255 255 / 100%);
  border-top: 1px solid;
  border-top-color: rgb(0 0 0 / 15%);

  :global {
    .l-z {
      position: absolute;
      z-index: 9;
      width: 100%;
      height: 7px;
      line-height: 7px;
      text-align: center;
      cursor: s-resize;
    }

    .ant-tabs-nav {
      width: calc(100% - 150px);
      height: 42px !important;

      /* no */
    }

    .ant-tabs {
      height: 100%;
    }

    .ant-tabs-bar {
      width: 87%;
    }

    .ant-tabs-nav-container {
      height: 32Px !important;

      /* no */
    }

    .ant-tabs-tab-arrow-show {
      color: #6e7685;
    }

    .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {
      /* no */
      margin-top: 0 !important;
      // border-width: 0 10px 30px 10px !important; /* no */
      line-height: 32Px !important;

      /* no */
    }

    .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {
      color: #0084f1;
    }

    .ant-tabs-tab:nth-child(1) {
      float: left;
    }
  }

  .tips {
    position: absolute;
    top: 10px;
    right: 150px;
    z-index: 9;
    display: block;
    color: #969696;
    font-size: 14px;
    cursor: pointer;

    span {
      font-size: 12Px;
    }
  }

  .download {
    position: absolute;
    top: 9px;
    right: 90px;
    z-index: 9;
    display: block;
    color: #969696;
    font-size: 14px;
    cursor: pointer;

    span {
      margin-left: 4px;
      font-size: 12px;
    }
  }

  .icon-dc {
    position: absolute;
    top: 11px;
    right: 60px;
    z-index: 9;
    display: block;
    clear: both;
    width: 25px;
    height: 15px;
    color: #969696;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
  }

  .icon_up {
    position: absolute;
    top: 11px;
    right: 40px;
    z-index: 9;
    display: block;
    clear: both;
    width: 25px;
    height: 15px;
    color: #969696;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
  }

  .icon_down {
    position: absolute;
    top: 11px;
    right: 20px;
    z-index: 9;
    display: block;
    clear: both;
    width: 25px;
    height: 15px;
    color: #969696;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
  }

  .logger_content_box {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-size: 12px;
    white-space: pre-wrap;

    p {
      width: 100%;
      min-height: 30px;
      font-size: 12px;
      line-height: 30px;
    }

    .table_box {
      min-width: 100%;
      height: 100%;
      font-size: 14px;
      overflow-x: auto;
      overflow-y: hidden;

      ul {
        display: flex;
        width: 100%;
        height: auto;
        border-bottom: 1px solid #1f1f26;

        li {
          display: block;
          float: left;
          width: 160px;
          height: auto;
          padding: 5px 10px;
          font-size: 14px;
          line-height: 20px;
          text-align: left;
          word-wrap: break-word;
        }
      }

      :global {
        .BaseTable__table {
          position: absolute;
          top: 0;
          display: flex;
          flex-direction: column-reverse;
        }

        .BaseTable__header-row,
        .BaseTable__row {
          display: flex;
          align-items: center;
          border-bottom: 0.01rem solid #eee;
        }

        .BaseTable,
        .BaseTable__table,
        .BaseTable__header-row,
        .BaseTable__header-row,
        .BaseTable__row {
          background: transparent;
        }

        .BaseTable__table-main .BaseTable__header {
          background-color: transparent;
        }

        .BaseTable__empty-layer {
          background-color: transparent;
        }

        .BaseTable__table-main {
          outline: none;
        }

        .BaseTable {
          box-shadow: none;
        }
      }
    }
  }
}

.black.logger-box {
  .logger-content-box {
    color: #ccc;
    background-color: #0f0f0f;
  }
}
